package com.me.modules.sys.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import com.me.modules.sys.dao.TimetblWorktimeDao;
import com.me.modules.sys.entity.TimetblWorktimeEntity;
import com.me.modules.sys.service.TimetblWorktimeService;



@Service("TimetblWorktimeService")
public class TimetblWorktimeServiceImpl implements TimetblWorktimeService {
	@Autowired
	private TimetblWorktimeDao TimetblWorktimeDao;

	@Override
	public TimetblWorktimeEntity queryObject(Long id){
		return TimetblWorktimeDao.queryObject(id);
	}

	@Override
	public List<TimetblWorktimeEntity> queryList(Map<String, Object> map){
		return TimetblWorktimeDao.queryList(map);
	}

    @Override
    public List<TimetblWorktimeEntity> queryListByBean(TimetblWorktimeEntity entity) {
        return TimetblWorktimeDao.queryListByBean(entity);
    }

	@Override
	public int queryTotal(Map<String, Object> map){
		return TimetblWorktimeDao.queryTotal(map);
	}

	@Override
	public int save(TimetblWorktimeEntity TimetblWorktime){


		return TimetblWorktimeDao.save(TimetblWorktime);
	}

	@Override
	public int update(TimetblWorktimeEntity TimetblWorktime){
        return TimetblWorktimeDao.update(TimetblWorktime);
	}

	@Override
	public int delete(Long id){
        return TimetblWorktimeDao.delete(id);
	}

	@Override
	public int deleteBatch(Long[] ids){
        return TimetblWorktimeDao.deleteBatch(ids);
	}

}
